﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VK.Comm.Tables
{
    public static class TableBLL
    {
        /// <summary>
        /// 获取所有列
        /// </summary>
        /// <param name="tableID"></param>
        /// <returns></returns>
        public static TableColumnEntity[] GetTableColumnList(int tableID)
        {
            return TableDAL.GetTableColumnList(tableID);
        }

        /// <summary>
        /// 设置改列显示
        /// </summary>
        /// <param name="tableID"></param>
        /// <param name="columnName"></param>
        /// <returns></returns>
        public static int SetTableColumnSelect(int tableID, string columnName)
        {
            return TableDAL.SetTableColumnSelect(tableID, columnName);
        }

        /// <summary>
        /// 获取排序字段
        /// </summary>
        /// <param name="tableID"></param>
        /// <returns></returns>
        public static TableSortEntity GetTableSort(int tableID)
        {
            return TableDAL.GetTableSort(tableID);
        }

        /// <summary>
        /// 更新排序字段
        /// </summary>
        /// <param name="sort"></param>
        /// <returns></returns>
        public static int UpdateTableSort(TableSortEntity sort)
        {
            return TableDAL.UpdateTableSort(sort);
        }
    }
}
